<<<<<<< HEAD:router/findoutRouter.js
//导入模块
const express=require('express');


//创建路由
const myRouter=express.Router();

//接口编写









//导出
=======
//导入模块
const express=require('express');
const db=require('../uilit/mysql')


//创建路由
const myRouter=express.Router();

//接口编写
myRouter.post('/submit',(req,res)=>{
  const sql=`UPDATE seeker SET s_password='${req.body.password}' WHERE s_tel='${req.body.telphone}'`
  db.query(sql,(err,data)=>{
    if(err){
      console.log(err)
    }else{
      res.send({code:'200',msg:'修改成功'})
    }
  })
})






//导出
>>>>>>> b59e8d20376ef4915240815c8b193911f19e11e7:Router/findoutRouter.js
module.exports=myRouter;